import { axios } from '@/utils/request'
var prefix='/wfuStudent';

export function fetchList (params) {
  return axios({
    url: prefix+'/page',
    method: 'GET',
    params
  })
}

export function getObj (id) {
  return axios({
    url: prefix+'/info/' + id,
    method: 'GET'
  })
}

export function addObj (obj) {
  return axios({
    url: prefix+'/add',
    method: 'POST',
    data: obj
  })
}

export function putObj (obj) {
  return axios({
    url: prefix+'/update',
    method: 'PUT',
    data: obj
  })
}

export function delObj (id) {
  return axios({
    url: prefix+'/delete/' + id,
    method: 'DELETE'
  })
}